package com.noahplat.fourg.mapper;

import com.noahplat.datapro.pojo.Sleep;
import org.apache.ibatis.annotations.Insert;
import tk.mybatis.mapper.common.Mapper;

/**
 * 功能：睡眠mapper
 * name：宋彦磊
 * time：2021.02.25
 */

public interface SleepMapper extends Mapper<Sleep> {
    @Insert("INSERT INTO sleep_${imei} USING sleep TAGS(#{prod},#{model}) VALUES (#{ts},#{imei},#{sleep},#{type},#{startts},#{endts})")
    int insert(Sleep sleep);
}
